package com.hdkj.eduorder.service;

import com.hdkj.eduorder.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author lzx
 * @since 2022-5-18
 */
public interface OrderService extends IService<Order> {

    String createOrders(String courseId, String memberIdByJwtToken);

    Boolean isBoughtByCourseId(String courseId, String jwtToken);

    List<Order> selectByMemberId(String jwtToken);

    boolean removeById(String orderId, String jwtInfo);

    int getonestatus(String courseId,String memberId);

}
